//
//  SecondViewController.m
//  NavigationBarSetting
//
//  Created by 崔宝印 on 14/11/17.
//  Copyright (c) 2014年 Koolearn. All rights reserved.
//

#import "SecondViewController.h"

@interface SecondViewController ()

@end

@implementation SecondViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    [self navigationBarTitle:@"Second" attribute:@{NSFontAttributeName:[UIFont boldSystemFontOfSize:15],NSForegroundColorAttributeName:[UIColor whiteColor]}];

    NSAttributedString *attributeSring = [[NSAttributedString alloc] initWithString:@"后退" attributes:@{NSFontAttributeName:[UIFont boldSystemFontOfSize:15],NSForegroundColorAttributeName:[UIColor blackColor]}];
    [self navigationBarItem:NavigationBarItemLeft attributeTitle:attributeSring action:@selector(goBack:)];
    
    attributeSring = [[NSAttributedString alloc] initWithString:@"前进" attributes:@{NSFontAttributeName:[UIFont boldSystemFontOfSize:15],NSForegroundColorAttributeName:[UIColor blackColor]}];
    [self navigationBarItem:NavigationBarItemRight attributeTitle:attributeSring action:@selector(goBack:)];
}

- (void)goBack:(id)sender
{
    [self.navigationController popViewControllerAnimated:YES];
}
@end
